.SUFFIXES: .ml .cmx

CC=ocamlopt.opt
RM=rm -f
OUT=Mapplestore
ML=initSDL.ml menage.ml contours.ml diagonalisation.ml triangle.ml moteur2.ml interface.ml
CMX=${ML:.ml=.cmx}
WALL=-I +lablgtk2 -I +sdl -I +lablGL -ccopt -L.\
	str.cmxa       \
     lablgl.cmxa    \
     lablgtk.cmxa   \
     bigarray.cmxa  \
     sdl.cmxa       \
     sdlloader.cmxa \
	lablglut.cmxa

all: ${CMX}
	${CC} ${WALL} ${CMX} -o ${OUT}

.ml.cmx:
	${CC} ${WALL} -c $<

clean:
	${RM} -rf *.cm* *.o .*.swp ~* '#'* *.so *.mli _build/ Mapplestore

#END
